package day02;

public class VarDemo {
    public static void main(String[] args) {
        //1)变量的声明
        int a;
        int b,c,d;
        //int a;变量不能同名


        //2)变量的初始化
        int e = 250;
        int f;
        f = 250;
        f = 360;
        int g = 5,h = 8,i = 10;

        //3)变量的访问
        int j = 5;
        int k = j + 10;
        System.out.println(k);
        System.out.println("k");

        j = j + 5;
        System.out.println(k);
        int balance = 5000;
        balance = balance - 1000;
        System.out.println(balance);

        //System.out.println(m);变量未声明
        int m;
        //System.out.println(m);变量未初始化
    }
}
